import request from '@/utils/request'

// 机台详情列表
export function getList(data) {
    return request({
        url: '/Machine_self_coins/get_self_list',
        method: 'post',
        data: data
    })
}

// 机台删除
export function del(data) {
    return request({
        url: '/Machine_self_coins/machine_del',
        method: 'post',
        data: data
    })
}

// 获取门店
export function getStore(data) {
    return request({
        url: '/General/get_store',
        method: 'post',
        data: data
    })
}
// 获取区域
export function getArea(data) {
    return request({
        url: '/General/get_area',
        method: 'post',
        data: data
    })
}
// 获取详情
export function getInfo(data) {
    return request({
        url: '/Machine_self_coins/get_info',
        method: 'post',
        data: data
    })
}

// 保存
export function save(data) {
    return request({
        url: '/Machine_self_coins/machine_modify',
        method: 'post',
        data: data
    })
}
// 查询机台已配置套餐
export function getMeal(data) {
    return request({
        url: '/Machine_self_coins/card_machine_package',
        method: 'post',
        data: data
    })
}
// 查询发卡机套餐
export function getCardMeal(data) {
    return request({
        url: '/Operations_card_machine_config/card_machine_package_list/-1',
        method: 'post',
        data: data
    })
}
// 发卡机套餐保存
export function saveCardMeal(data) {
    return request({
        url: '/Machine_self_coins/card_machine_package_mapping',
        method: 'post',
        data: data
    })
}
